package c.c.a;

import android.os.IBinder;
import android.os.IInterface;
import android.util.Pair;
import c.c.a.i1.a;
import c.c.a.k1.b;

public final class x0 implements b<i1, Pair<String, Boolean>> {
    public Object a(IBinder iBinder) {
        int i = a.a;
        if (iBinder == null) {
            return null;
        }
        IInterface queryLocalInterface = iBinder.queryLocalInterface("com.uodis.opendevice.aidl.OpenDeviceIdentifierService");
        if (queryLocalInterface == null || !(queryLocalInterface instanceof i1)) {
            return new a.a(iBinder);
        }
        return (i1) queryLocalInterface;
    }

    public Object a(Object obj) {
        i1 i1Var = (i1) obj;
        if (i1Var == null) {
            return null;
        }
        return new Pair(i1Var.a(), Boolean.valueOf(i1Var.b()));
    }
}
